libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu, testcpu] to complement xc_cpumap_alloc.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 23 Apr 2015 13:29:39 +0000 (09:29 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 8 May 2015 13:54:44 +0000 (14:54 +0100)
commit3cab67ac83b1d56c3daedd9c4adfed497a114246
tree8db61ea3169eeeace99f36bedf237ff526300ba9
parent0623f56d0b04d4319c1be1972cf53918f92fa843
libxl/cpumap: Add xc_cpumap_[setcpu, clearcpu, testcpu] to complement xc_cpumap_alloc.

We export the xc_cpumap_alloc but not the bit operations.
One could include 'xc_bitops.h' but that is naughty - so instead
we just export the proper functions to do it on the xc_cpumap_t
typedef.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
----
v2: Use our own macro to make sure ARM is not affected negatively
v3: Lifted Ian's explanation.
tools/libxc/include/xenctrl.h
tools/libxc/xc_misc.c